<%@ Control Language="c#" AutoEventWireup="false" Codebehind="ArticlesManager.ascx.cs" Inherits="gdlmo.DNN.Modules.Article.ArticlesManager" %>
<%@ import Namespace="DotNetNuke" %>
<%@ Register TagPrefix="dnntv" Namespace="DotNetNuke.UI.WebControls" Assembly="DotNetNuke.WebControls" %>
<script language="javascript" type="text/javascript">
<!--
    function doClick(obj) {
        if (event.keyCode != 13) {
            return;
        }
        <%=btnSearch.ClientID %>.doClick();
    }
-->
</script>
<table cellSpacing="0" cellPadding="0" width="100%">
	<tr vAlign="top">
		<td width="150">
			<table height="100%" cellSpacing="2" cellPadding="0" width="100%">
				<tr>
					<td class="YongRi_NewsArticles_Left_Title"><asp:label id="lblViewCategory" CssClass="NormalBold" runat="server" resourcekey="lblViewCategory">ViewCategory</asp:label></td>
				</tr>
				<tr vAlign="top">
					<td><dnntv:dnntree id="DNNTree" CssClass="Normal" runat="server" DefaultNodeCssClass="Normal" DefaultNodeCssClassOver="Normal"></dnntv:dnntree></td>
				</tr>
			</table>
		</td>
		<td width="10">&nbsp;</td>
		<td>
		<td>
			<asp:textbox id="txtSearch" runat="server" Wrap="False" Width="150px" maxlength="200" cssclass="NormalTextBox" onkeyup="doClick(this)"></asp:textbox>
			<asp:Button ID="btnSearch" Runat="server" resourcekey="btnSearch" CssClass="NormalTextBox" Text="Search"></asp:Button>&nbsp;
			<asp:DropDownList ID="cboSortField" CssClass="NormalTextBox" Runat="server" AutoPostBack="True">
				<asp:ListItem Value="" resourcekey="cboSortField-None">None</asp:ListItem>
				<asp:ListItem Value="CreatedDate" resourcekey="cboSortField-CreatedDate">CreatedDate</asp:ListItem>
				<asp:ListItem Value="Hits" resourcekey="cboSortField-Hits">Hits</asp:ListItem>
				<asp:ListItem Value="Stars" resourcekey="cboSortField-Stars">Stars</asp:ListItem>
			</asp:DropDownList>
			<asp:checkbox id="chkHot" CssClass="NormalBold" resourcekey="chkHot" Runat="server" Text="Hot"
				AutoPostBack="True"></asp:checkbox>&nbsp;
			<asp:checkbox id="chkElite" CssClass="NormalBold" resourcekey="chkElite" Runat="server" Text="Elite"
				AutoPostBack="True"></asp:checkbox>&nbsp;
			<asp:CheckBox ID="chkUnPassed" Runat="server" CssClass="NormalBold" resourcekey="chkUnPassed"
				Text="UnPassed" AutoPostBack="True"></asp:CheckBox>
			<asp:datagrid id="grdArticles" runat="server" CellSpacing="2" autogeneratecolumns="False" BorderWidth="0px"
				Width="100%" summary="This table shows Articles." PageSize="50">
				<AlternatingItemStyle BackColor="#EEEEEE"></AlternatingItemStyle>
				<HeaderStyle HorizontalAlign="Center" Height="25px" BackColor="SteelBlue"></HeaderStyle>
				<Columns>
					<asp:TemplateColumn HeaderText="Title">
						<HeaderStyle CssClass="NormalBold"></HeaderStyle>
						<ItemTemplate>
							<asp:hyperlink id="editLink" navigateurl='<%# EditUrl("ArticleId",DataBinder.Eval(Container, "DataItem.ArticleId").ToString()) %>' Visible='<%# MyIsEditable(DataBinder.Eval(Container.DataItem, "CreatedByUser").ToString()) %>' runat="server">
								<asp:image id="editLinkImage" imageurl="~/images/edit.gif" visible='<%# MyIsEditable(DataBinder.Eval(Container.DataItem, "CreatedByUser").ToString()) %>' alternatetext="Edit" runat="server" resourcekey="Edit" />
							</asp:hyperlink>
							<asp:hyperlink runat="server" CssClass="Normal" title='<%# DataBinder.Eval(Container.DataItem, "Title").ToString() %>' Target='_blank' navigateurl='<%# EditUrl("ArticleID",DataBinder.Eval(Container.DataItem, "ArticleID").ToString(),"ArticleShow") %>' ID="Hyperlink1">
								<%# DataBinder.Eval(Container.DataItem, "Title").ToString() %>
							</asp:hyperlink>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="Dept">
						<HeaderStyle Width="65px" CssClass="NormalBold"></HeaderStyle>
						<ItemTemplate>
							<asp:Label runat="server" CssClass="Normal" ForeColor="Green" Text='<%# DataBinder.Eval(Container.DataItem, "DeptName").ToString() %>' ID="Label1">
							</asp:Label>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="Author">
						<HeaderStyle Width="80px" CssClass="NormalBold"></HeaderStyle>
						<ItemStyle HorizontalAlign="Center" CssClass="Normal"></ItemStyle>
						<ItemTemplate>
							<%# DataBinder.Eval(Container.DataItem, "Author").ToString() %>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:BoundColumn DataField="CreatedDate" HeaderText="CreatedDate" DataFormatString="{0:yyyy-MM-dd}">
						<HeaderStyle Width="80px" CssClass="NormalBold"></HeaderStyle>
						<ItemStyle Wrap="False" HorizontalAlign="Center" CssClass="NormalBold"></ItemStyle>
					</asp:BoundColumn>
				</Columns>
				<PagerStyle Visible="False"></PagerStyle>
			</asp:datagrid>
			<table width="100%" CellSpacing="2">
				<tr>
					<td bgColor="steelblue" Height="25" align="right"><asp:linkbutton id="cmdFirst" resourcekey="cmdFirst" runat="server" CssClass="CommandButton" CommandArgument="First">First</asp:linkbutton>&nbsp;
						<asp:linkbutton id="cmdPrev" resourcekey="cmdPrev" runat="server" CssClass="CommandButton" CommandArgument="Prev">Prev</asp:linkbutton>&nbsp;
						<asp:dropdownlist id="cboPages" runat="server" CssClass="NormalTextBox" AutoPostBack="True"></asp:dropdownlist>&nbsp;
						<asp:linkbutton id="cmdNext" resourcekey="cmdNext" runat="server" CssClass="CommandButton" CommandArgument="Next">Next</asp:linkbutton>&nbsp;
						<asp:linkbutton id="cmdLast" resourcekey="cmdLast" runat="server" CssClass="CommandButton" CommandArgument="Last">Last</asp:linkbutton>&nbsp;
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
